// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import App from "./App";
import routeConfig from './router/index.js'

Vue.use(VueRouter)


const router = new VueRouter({
	routes:routeConfig
});

router.beforeEach((to, from, next) => {
  console.log(to)
  next()
})

new Vue({
    el: '#app',
    router:router,
    render: h => h(App)
})



